// select-server
#include <iostream>
#include <string>
#include "SelectServer.hpp"
using namespace std;

// ./select-server port
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        cout << "正确用法: " << argv[0] << " port" << endl;
        return 0;
    }
    // 拿到端口号
    int16_t port = stoi(argv[1]);
    SelectServer svr(port);
    svr.Loop(); // 启动select-server
    return 0;
}